package lifeOfAFish.scenegraph.test;

import lifeOfAFish.scenegraph.*;
public class test_sgNode {
	public static void main(String[] args)
	{
		testNode node;
		node = new testNode();
		
		System.out.println("new node created...");
		System.out.println(node);
		
		// add a child
		testNode n1 = new testNode();
		node.addChild((sgNode)n1);
		System.out.println("added a child...");
		System.out.println(node);
		node.removeChild(n1);
		System.out.println("removed the child...");
		System.out.println(node);
		
		System.out.println("adding 10 children...");
		for (int i = 0; i < 10; i++){
			node.addChild(new testNode());
			System.out.println(node);
		}
		
		System.out.println("removing 10 children...");
		for (int i = node.getNumberOfChildren(); i >= 0; i--){
			node.removeChild(i);
			System.out.println(node);
		}
	}
}
